home *** CD-ROM | disk | FTP | other *** search
- this._x += _parent._parent.speed + moveX;
- this._y -= moveY;
- moveY -= 0.5;
- ricicleX = _parent.distance + this._x;
- rikDX = _parent._parent.rik._x - ricicleX;
- rikDY = _parent._parent.rik._y - (380 + this._y);
- if(rikDX < 10 and rikDX > -60 and rikDY < 15 and rikDY > -65)
- {
- _parent._parent.riciclesCollected = _parent._parent.riciclesCollected + 1;
- nextFrame();
- }
- else if(hitTest(_parent._parent.alien))
- {
- _parent._parent.alien.anim.ricicle.gotoAndPlay(2);
- gotoAndStop(1);
- }
- else if(this._y > 425 or ricicleX < -25 or ricicleX > 575)
- {
- gotoAndStop(1);
- }
- else
- {
- prevFrame();
- }
-